<%-- 
    Document   : index
    Created on : Apr 21, 2012, 7:01:58 PM
    Author     : TANGQUOCTUAN
--%>
<%@page import="java.util.ArrayList"%>
<%@taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core" %>
<%@page contentType="text/html" pageEncoding="UTF-8"%>
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN"
    "http://www.w3.org/TR/html4/loose.dtd">

<html>
    <head>
        <meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
        <title>Tunga Restaurant</title>
        <script>
            function check(){
                var user = document.f.txtUser.value;
                var pass = document.f.txtPass.value;
                if(user.length==0){
                    alert("Insert Username");
                    f.txtUser.focus();
                    return false;
                }
                if(pass.length==0){
                    alert("Insert Password");
                    f.txtPass.focus();
                    return false;
                }
                return true;
            }
        </script>
        <link href="style.css" rel="stylesheet" type="text/css" />
    </head>
    <body>
        <center>
            <c:set var="session" value="${sessionScope.user}"/>
            <div class="outer">
                <!--Header end-->
                <div id="rc1"></div>
                <div id="bg">
                    <div class="toplinks"><a href="ContactUs.jsp">Contact us</a></div><div class="sap">|</div>
                    <div class="toplinks"><a href="initShowFood?action=Food">Food</a></div><div class="sap">|</div>
                    <div class="toplinks"><a href="ControllerTables?action=Table">Table</a></div><div class="sap">|</div>
                    <div class="toplinks"><a href="ControllerRooms?action=Room">Room</a></div><div class="sap">|</div>
                    <div class="toplinks"><a href="registration.jsp">Register</a></div><div class="sap">|</div>
                    <div class="toplinks"><a href="login.jsp">Login</a></div><div class="sap">|</div>
                    <div class="toplinks"><a href="index.jsp">Home Page</a></div>
                </div>
                <div id="rc2"></div>
                <div id="header">
                    <div class="name">Tunga Restaurant</div>
                    <div class="tag">The best restaurant in the world</div>
                </div>
                <!--Top nav end-->
                <div style="clear:left"></div>
                <div id="outer2">
                    <div id="left-nav">
                        <div class="leftlinks">
                            <span class="heading">Quick Links</span>
                            <ul>
                                <li><a href="index.jsp">Home Page </a></li>
                                <li><a href="ControllerRooms?action=Room">Room</a></li>
                                <li><a href="ControllerTables?action=Table">Table</a></li>
                                <li><a href="initShowFood?action=Food">Food</a></li>
                                <c:if test="${not empty session}">
                                    <li><a href="ControllerRooms?action=BookRoom">Book Room</a></li>
                                    <li><a href="ControllerTables?action=BookTable">Book Table </a></li>                                   
                                    <li><a href="addToCart.jsp">Shopping Cart</a></li>
                                </c:if>
                                <li><a href="ContactUs.jsp">Contact Us </a></li>
                            </ul>
                        </div>
                    </div><div class="inner_copy"><div class="inner_copy">All <a href="http://www.magentothemesworld.com" title="Best Magento Templates">premium Magento themes</a> at Magentothemesworld.com!</div></div>
                    <div id="content">
                        <span class="heading">Login Form </span>
                        <div id="main">
                            <div align="center">
                                <form action="ControllerCustomer" method="POST" name="f" onsubmit="return check();">
                                    <table border="0">
                                        <tbody>
                                            <tr>
                                                <td>Username:</td>
                                                <td><input type="text" name="txtUser" value=""/></td>
                                            </tr>
                                            <tr>
                                                <td>Password:</td>
                                                <td><input type="password" name="txtPass" value=""/></td>
                                            </tr>
                                            <tr>
                                                <td></td>
                                                <td><input type="submit" value="Login" name="action" /> <input type="reset" value="Reset" /></td>
                                            </tr>
                                        </tbody>
                                    </table>
                                </form>
                            </div>
                        </div>
                    </div>
                    <div style="clear:left"></div>
                </div>
                <!--Bottom part-->
                <div id="bottom">
                    <div id="footer"><div class="fcenter">GROUP02-F5-10-1009-S1</div></div>
                </div>
            </div>
        </center>
    </body>
</html>
